In normal-mode, make c-mode call c-mode when CC Mode is loaded
authorAlan Mackenzie <acm@muc.de>
Thu, 30 May 2024 12:40:07 +0000 (12:40 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 30 May 2024 12:40:07 +0000 (12:40 +0000)
commit1fdf0f68ccf02cc92e4fb995f82f01a6148b62e7
tree46d1d24f26b63ad7bad5c7c922c45b5906aacb76
parent39b704e36e308783dcec791d333fca317c6a5202
In normal-mode, make c-mode call c-mode when CC Mode is loaded

As regards which mode normal-mode calls for the symbols c-mode,
etc., the first of the following which applies holds:
(i) If the user has made a pertinent entry in
major-mode-remap-alist, this is used.
(ii) If CC Mode has been loaded, c-mode is called.
(iii) If library c-ts-mode has been loaded, c-ts-mode is
called.
(iv) Otherwise c-mode is called.

* lisp/progmodes/cc-mode.el (top level): Add entries to
major-mode-remap-defaults to implement the above.
lisp/progmodes/cc-mode.el